Skip to content

[Cloud Security] add cloud_configuration_finding data stream to wiz#9528

Closed
maxcold wants to merge 5 commits intoelastic:mainfrom
maxcold:csp-add-cloud-configuration-finding-data-stream-to-wiz
Closed

[Cloud Security] add cloud_configuration_finding data stream to wiz#9528
maxcold wants to merge 5 commits intoelastic:mainfrom
maxcold:csp-add-cloud-configuration-finding-data-stream-to-wiz

Conversation

@maxcold
Copy link
Copy Markdown
Contributor

@maxcold maxcold commented Apr 5, 2024

Proposed commit message

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@elastic-sonarqube
Copy link
Copy Markdown

@@ -0,0 +1,41 @@
{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxcold rename the file to match the data stream name

@botelastic
Copy link
Copy Markdown

botelastic bot commented May 8, 2024

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label May 8, 2024
@botelastic botelastic bot removed the Stalled label May 28, 2024
index:
- "logs-wiz.cloud_configuration_finding-*"
dest:
index: "logs-wiz.cloud_configuration_finding_latest-default"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omit -default from the destination index, it is preserved for namespaces. which is not relevant here

Copy link
Copy Markdown
Contributor Author

@maxcold maxcold May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kfirpeled It wasn't really important for the POC, for better or for worse it shows that the namespace question is still open. I will investigate if we can get around the problem of constant_keyword and have namespace-indifferent latest index or not

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as you suggested it should be possible to have keyword as a type for data_stream.namespace even though the schema restrict it with constant_keyword. Here is some discussion around why restrict it in the schema in the first place elastic/ecs#845 (comment) . Though going against ECS might impose some risks, eg. if the package-spec implements some validation for that in the future for some reason

index: "logs-wiz.cloud_configuration_finding_latest-default"
latest:
unique_key:
- event.id
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it the unique_key?
shouldn't we have resource.id and rule.id as we use in current transform for findings?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kfirpeled yes, it should be a combination of the fields we care about same or similar to our native integration. I didn't intend this PR to be production ready and for POC it didn't make a difference really. there are a lot of things to fix if we want to release the cloud_configuration_finding data stream ourselves

@elasticmachine
Copy link
Copy Markdown

elasticmachine commented May 31, 2024

💔 Build Failed

Failed CI Steps

History

@botelastic
Copy link
Copy Markdown

botelastic bot commented Jun 30, 2024

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jun 30, 2024
@botelastic botelastic bot removed the Stalled label Jul 19, 2024
@andrewkroh andrewkroh added the Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] label Jul 19, 2024
@botelastic
Copy link
Copy Markdown

botelastic bot commented Aug 18, 2024

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Aug 18, 2024
@maxcold
Copy link
Copy Markdown
Contributor Author

maxcold commented Aug 19, 2024

Keeping this open as the POC it is a part of is still relevant. Will close after Wiz data stream is implemented

@botelastic botelastic bot removed the Stalled label Aug 19, 2024
@andrewkroh andrewkroh added the enhancement New feature or request label Aug 19, 2024
@botelastic
Copy link
Copy Markdown

botelastic bot commented Sep 18, 2024

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Sep 18, 2024
@maxcold
Copy link
Copy Markdown
Contributor Author

maxcold commented Sep 20, 2024

closing as transform has already been released and this POC is not relevant enymore

@maxcold maxcold closed this Sep 20, 2024
@maxcold maxcold deleted the csp-add-cloud-configuration-finding-data-stream-to-wiz branch September 20, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:wiz Wiz Stalled Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants